package com.foreknow.demo6;

public class Swallow extends Bird {

    public static void main(String[] args) {
        Swallow swallow1 = new Swallow();
        swallow1.setName("葛珊");
        swallow1.setColor("绿色");
        swallow1.eat();
        System.out.println("-----------------------------");
        Swallow swallow2 = new Swallow();
        swallow2.setName("葛珊二号");
        swallow2.setColor("蓝色");
        swallow2.eat();

    }
}
